<div class="navigation">
	<ul>
		<?php $functions = (isset($functions))? $functions : NULL;?>
		<?php foreach ($functions as $function):?>
				<li class='<?php echo $function['class']?> <?php if ($function['id'] === $active_tab) echo 'active';?>'>
					<a href="<?php echo $function['controller']?>"><?php echo $function['name']?></a>
				</li>
		<?php endforeach;?>
	</ul>
</div>